<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:fb="http://ogp.me/ns/fb#">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link type="image/x-icon" href="<?php echo DOMAIN ?>images/logo1.gif" rel="icon">
<link type="image/x-icon" href="<?php echo DOMAIN ?>images/logo1.gif" rel="shortcut icon">
<?php
if (isset($keywords_for_layout)) {
    echo "<meta name='keywords' content='" . $keywords_for_layout . "' /> ";
}
if (isset($description_for_layout)) {
    echo "<meta name='description' content='" . $description_for_layout . "' />";
}
?>
<title>
    <?php
    if (isset($title_for_layout)) {
        echo $title_for_layout;
    }
    ?>
</title>
<?php
    $css = array(
        '/icon-font/css/font-awesome',
        '/css/bootstrap.min',
        '/css/libs',
        '/css/pagination',
        '/css/notive',
        '/css/menu/ddsmoothmenu',
        '/css/menu/ddsmoothmenu-v',
        '/css/style-h',
        '/css/style',
        '/css/reset',

        '/css/main-content',
        '/css/camera'
    );
    $js = array(
        '/js/jquery-1.7.2.min.js',
        '/js/bootstrap.min.js',
        '/js/jqBootstrapValidation.js',
        //'/js/menu/ddsmoothmenu',
        '/js/jquery.easing.1.3',
        '/js/camera',
    );

    echo $this->Html->css($css);
    echo $this->Html->script($js);
?>

<script type="text/javascript">
    ddsmoothmenu.init({
    	mainmenuid: "smoothmenu1", //menu DIV id
    	orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
    	classname: 'navhor', //class added to menu's outer DIV
    	//customtheme: ["#1c5a80", "#18374a"],
    	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
    })
    ddsmoothmenu.init({
    	mainmenuid: "smoothmenu2", //Menu DIV id
    	orientation: 'v', //Horizontal or vertical menu: Set to "h" or "v"
    	classname: 'ddsmoothmenu-v', //class added to menu's outer DIV
    	//customtheme: ["#804000", "#482400"],
    	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
    })


    setInterval(function(){$.post( "<?php echo DOMAIN;?>user/point")},60000);
</script>

</head>
<body>
<?php echo $this->element('header');?>
<div class="content-outer">
    <div class="clear-content"></div>
    <?php echo $this->Session->flash(); ?>
    <div class="row-fluid">
        <?php echo $this->fetch('content'); ?>
    </div>
    <div class="clear-content"></div>
</div><!--end content-outer-->
<?php echo $this->element('footer');?>
</body>
</html>
